<script type="text/javascript">
//<![CDATA[
function selectedRadiobox(frm,radioname){
var table = st.element;
		var inputs = table.getElementsByTagName("INPUT");
		var l = inputs.length;
		for (var i = 0; i < l; i++) {
			if(inputs[i].checked ){return inputs[i].value;}
		}
	return null;
}
function getCheckBoxValue (oRow, nColumn) {
	return oRow.cells[nColumn].firstChild.checked ? 1 : 0;
};

// add new sort type and use the default compare
// also use custom getRowValue since the text content is not enough
st.addSortType("CheckBox", null, null, getCheckBoxValue);

// IE does not remember input values when moving DOM elements
if (/MSIE/.test(navigator.userAgent)) {

	// backup check box values
	st.onbeforesort = function () {
		var table = st.element;
		var inputs = table.getElementsByTagName("INPUT");
		var l = inputs.length;
		for (var i = 0; i < l; i++) {
			inputs[i].parentNode.parentNode._checked = inputs[i].checked;
		}
	};

	// restore check box values
	st.onsort = function () {
		var table = st.element;
		var inputs = table.getElementsByTagName("INPUT");
		var l = inputs.length;
		for (var i = 0; i < l; i++) {
			inputs[i].checked = inputs[i].parentNode.parentNode._checked;
		}
	};
}
function addClassName(el, sClassName) {
	var s = el.className;
	var p = s.split(" ");
	var l = p.length;
	for (var i = 0; i < l; i++) {
		if (p[i] == sClassName)
			return;
	}
	p[p.length] = sClassName;
	el.className = p.join(" ");

}

function removeClassName(el, sClassName) {
	var s = el.className;
	var p = s.split(" ");
	var np = [];
	var l = p.length;
	var j = 0;
	for (var i = 0; i < l; i++) {
		if (p[i] != sClassName)
			np[j++] = p[i];
	}
	el.className = np.join(" ");
}

// restore the class names
st.onsort = function () {
	var rows = st.tBody.rows;
	var l = rows.length;
	for (var i = 0; i < l; i++) {
		removeClassName(rows[i], i % 2 ? "odd" : "even");
		addClassName(rows[i], i % 2 ? "even" : "odd");
	}
};


//]]>


</script>
<table width="500" border="0" cellspacing="0" cellpadding="0" height="21">
        <tr> 
          <td> 
            <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><bean:message key="joinworkName"/></font></div>
          </td>
        </tr>
      </table>

